package org.cuit.echo.seon;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-04
 */
public class Client {
    public static void main(String[] args) {
        Circle originalCircle = new Circle(10);
        Rectangle originalRectangle = new Rectangle(20, 30);

        Shape clonedCircle = originalCircle.clone();
        Shape clonedRectangle = originalRectangle.clone();

        // 绘制原始形状和克隆形状
        originalCircle.draw();  // Drawing a Circle with radius 10
        clonedCircle.draw();    // Drawing a Circle with radius 10

        originalRectangle.draw();  // Drawing a Rectangle with width 20 and height 30
        clonedRectangle.draw();    // Drawing a Rectangle with width 20 and height 30

        System.out.println(originalCircle == clonedCircle);
        System.out.println(originalRectangle == clonedRectangle);
    }
}
